package com.imooc.ad.mysql.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 对应用于监听数据库、数据表的template.json文件中的各个表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class JsonTable {

    //表名
    private String tableName;
    //层级
    private Integer level;

    //操作
    private List<Column> insert;
    private List<Column> update;
    private List<Column> delete;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Column {
        //列名
        private String column;
    }
}
